package com.yuyu.shop.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author
 * @version 1.0
 * @description: TODO
 * @date 2022/8/4 11:22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_goods")
public class GoodsPO extends AbstractBasePO {
    @TableId(value = "id",type = IdType.AUTO)
    private Long goodsId;
    private Long categoryId;
    private String goodsName;
    private String picture;
    private String description;
    private String content;
    private BigDecimal originPrice;
    private BigDecimal realPrice;
    private Integer stock;
    private Integer isOnSale;
    private Integer isDel;
    private Integer isFreeShipping;
    private Integer sellCount;
    private Long onSaleTime;
    private String keyword;
    private String attribute;
    private String specification;

}
